-- GENERATED SPELL FOR [Defias Night Blade] --


function spell0_909(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(2589,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_909', 622, 1)
end

function spell1_909(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(744,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_909', 30000, 1)
end

function Sorts_909(pUnit, Event)
local choix_sorts_909 = math.random(0, 1)
if choix_sorts_909 == 0 then
pUnit:RegisterEvent('spell0_909', 1, 1)
end
if choix_sorts_909 == 1 then
pUnit:RegisterEvent('spell1_909', 1, 1)
end
end

function mob909_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_909', math.random(1500, 3000), 1)
end

function mob909_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob909_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob909_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(909, 1, 'mob909_Action')
RegisterUnitEvent(909, 2, 'mob909_Leave')
RegisterUnitEvent(909, 3, 'mob909_Kill')
RegisterUnitEvent(909, 4, 'mob909_Die')
